<?php echo $this->render('collection/item/_tab.phtml');?>
<div class="body">
	<table class="list">
		<tr>
			<th class="narrow">KEY</th>
			<th><?php echo $this->language('TITLE');?></th>
			<th><?php echo $this->language('URL');?></th>
			<th class="time"><?php echo $this->language('CREATION TIME');?></th>
			<th class="narrow"></th>
			<th class="narrow"></th>
			<th class="narrow"></th>
		</tr>
		<?php foreach($this->list AS $key => $row) { ?>
		<tr>
			<td class="key"><?php echo $row->getKey();?></td>
			<td><a href="<?php echo $this->url('collection/item/edit', array('id' => $row->getId(), 'site_id' => $this->site->getId()));?>"><?php echo $this->escape($row->getTitle());?></a></td>
			<td><a href="<?php echo $row->getUrl();?>" target="_blank"><?php echo $row->getUrl();?></a></td>
			<td class="time"><?php echo $this->date($row->getCreationtime());?></td>
			<td><a href="<?php echo $this->url('collection/special/index', array('item_id' => $row->getId()));?>"><?php echo $this->language('Special');?>»</a></td>
			<td><a href="<?php echo $this->url('collection/item/collect', array('id' => $row->getId(), 'site_id' => $this->site->getId()));?>" class="collect"><?php echo $this->language('Collect');?>»</a></td>
			<td></td>
		</tr>
		<?php } ?>
		<?php if(count($this->list) <= 0) {?>
		<tr>
			<td colspan="7" class="nohover">
				<div class="msg">
					<div class="common error" style="border:0;background:#fff;">
						<i class="icon"></i>
						<h4>STOP</h4>
						<div class="msg-bd">
							No Item found. 
							<a href="<?php echo $this->url('collection/site/collect', array('id' => $this->site->getId()));?>"><?php echo $this->language('Collect');?>..</a>
						</div>
					</div>
				</div>
			</td>
		</tr>
		<?php } ?>
	</table>
</div>
<div class="body">
	<?php echo $this->paginator($this->list)->render();?>
</div>
